package apiday01;
public class LengthDemo {
    public static void main(String[] args) {
        // int length();
        // 获取字符串的长度；
        String str = "我爱Java！";
        int len = str.length();
        System.out.println(len); // 7
    }
}
